<?php
class ORMpz_visa extends ORMBase {
  public function __construct() {
    parent::__construct('pz_visa');
  }

  public function __toEpObject($myManager, $epObject, $object) {
    if (isset($object->track_id)) {
      $epObject->track_id =  $object->track_id;
    }
    if (isset($object->client_id)) {
      $epObject->client_id =  $object->client_id;
    }
    if (isset($object->client_num)) {
      $epObject->client_num =  $object->client_num;
    }
    if (isset($object->visa_date_expiry_current)) {
      $epObject->visa_date_expiry_current =  $object->visa_date_expiry_current;
    }
    if (isset($object->record_conviction)) {
      $epObject->record_conviction =  $object->record_conviction;
    }
    if (isset($object->record_refuse)) {
      $epObject->record_refuse =  $object->record_refuse;
    }
    if (isset($object->visa_appl_type)) {
      $epObject->visa_appl_type =  $object->visa_appl_type;
    }
    if (isset($object->visa_appl_date_submit)) {
      $epObject->visa_appl_date_submit =  $object->visa_appl_date_submit;
    }
    if (isset($object->medical_month)) {
      $epObject->medical_month =  $object->medical_month;
    }
    if (isset($object->medical_year)) {
      $epObject->medical_year =  $object->medical_year;
    }
    if (isset($object->pcc_month)) {
      $epObject->pcc_month =  $object->pcc_month;
    }
    if (isset($object->pcc_year)) {
      $epObject->pcc_year =  $object->pcc_year;
    }
    if (isset($object->record_process)) {
      $epObject->record_process =  $object->record_process;
    }
    if (isset($object->visa_appl_num)) {
      $epObject->visa_appl_num =  $object->visa_appl_num;
    }
    if (isset($object->visa_date_issue)) {
      $epObject->visa_date_issue =  $object->visa_date_issue;
    }
    if (isset($object->visa_date_expiry_new)) {
      $epObject->visa_date_expiry_new =  $object->visa_date_expiry_new;
    }
    if (isset($object->visa_result)) {
      $epObject->visa_result =  $object->visa_result;
    }
    if (isset($object->visa_date_pickup)) {
      $epObject->visa_date_pickup =  $object->visa_date_pickup;
    }
    if (isset($object->date_reminder)) {
      $epObject->date_reminder =  $object->date_reminder;
    }
    return $epObject;
  }

  public function __toObject($myManager, $epObject, $object) {
    $object->id = $epObject->oid;
    $object->track_id = $epObject->track_id;
    $object->client_id = $epObject->client_id;
    $object->client_num = $epObject->client_num;
    $object->visa_date_expiry_current = $epObject->visa_date_expiry_current;
    $object->record_conviction = $epObject->record_conviction;
    $object->record_refuse = $epObject->record_refuse;
    $object->visa_appl_type = $epObject->visa_appl_type;
    $object->visa_appl_date_submit = $epObject->visa_appl_date_submit;
    $object->medical_month = $epObject->medical_month;
    $object->medical_year = $epObject->medical_year;
    $object->pcc_month = $epObject->pcc_month;
    $object->pcc_year = $epObject->pcc_year;
    $object->record_process = $epObject->record_process;
    $object->visa_appl_num = $epObject->visa_appl_num;
    $object->visa_date_issue = $epObject->visa_date_issue;
    $object->visa_date_expiry_new = $epObject->visa_date_expiry_new;
    $object->visa_result = $epObject->visa_result;
    $object->visa_date_pickup = $epObject->visa_date_pickup;
    $object->date_reminder = $epObject->date_reminder;
    return $object;
  }
}
?>
